package com.aishua.aishuawallet.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.aishua.aishuawallet.Constant;
import com.aishua.aishuawallet.R;
import com.aishua.aishuawallet.diydialog.ExitLoginDialog;
import com.aishua.aishuawallet.utils.LogUtils;
import com.fasterxml.jackson.databind.ser.Serializers;

/**
 * Created by aishua on 2018/7/31.
 */

public class BaseActivity extends AppCompatActivity {

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);



    }

    public  void  touristMode() {


            LogUtils.v("BaseFrament:onCreateView()");
            final ExitLoginDialog exitLoginDialog = ExitLoginDialog.newInstance(getResources().getString(R.string.lookfirstdialog));
            exitLoginDialog.show(getFragmentManager(), "exit");
            exitLoginDialog.setCancelable(false);
            exitLoginDialog.setCancleButtonListener(new View.OnClickListener() {

                @Override
                public void onClick(View v) {

                    exitLoginDialog.dismiss();

                }
            });
            exitLoginDialog.setSureButtonListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {

                    Intent intent = new Intent(BaseActivity.this, LoginActivity.class);
                    startActivity(intent);
                    finish();


                }
            });
        }

}
